package com.personal.system.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.personal.system.entity.seckill.SeckillOrderVo;
import com.personal.system.mapper.seckill.SeckillOrderMapper;
import com.personal.system.service.act.AuditRuleService;
import com.personal.system.service.SeckillOrderService;
import com.personal.system.config.SecurityUtil;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;

@Slf4j
@Service
public class SeckillOrederServiceImpl implements SeckillOrderService {

    @Resource
    private SecurityUtil securityUtil;

    @Resource
    private SeckillOrderMapper orderMapper;

    @Resource
    private AuditRuleService ruleService;

    @Override
    public IPage<SeckillOrderVo> detail(Page<SeckillOrderVo> pageParam) {
        Long userId = securityUtil.getUserId();
        IPage<SeckillOrderVo> list = orderMapper.detail(pageParam, userId);

        return list;
    }



}
